<!DOCTYPE html>
<html lang="en">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>Document</title>
    <style>
      * {
        margin: 0;
        padding: 0;
        background-color: #333;
      }

      .block {
        width: 100px;
        height: 100px;
        margin: 10px;
        background-color: #ccc;
      }

      .inline {
        display: inline;

        /* 无效值 */
        width: 99999999999999999px;
        height: 99999999999999999px;
        margin: 99999999999999999px 10px;

        padding: 3px;
        background-color: #f77;
      }

      .inline-block {
        display: inline-block;
        width: 100px;
        height: 100px;
        margin: 10px;
        background-color: #13db;
      }
    </style>
  </head>
  <body>
    <div class="block">block</div>
    <div class="inline">inline</div>
    <div class="inline-block">inline-block</div>
  </body>
</html>
